package cn.dakaqi.services;

import cn.dakaqi.entities.Festival;
import cn.dakaqi.utils.exception.ServiceRuntimeException;
import org.springframework.data.domain.Page;

/**
 * Created by chunyang on 2016/4/22.
 */
public interface FestivalService
{
    void create(String param)throws ServiceRuntimeException;
    void save(Festival festival)throws ServiceRuntimeException;
    void updateStatus(String param)throws ServiceRuntimeException;
    void updateStatus(String code, int status)throws ServiceRuntimeException;
    Festival findByCode(String code)throws ServiceRuntimeException;
    Festival findOne(Long id)throws ServiceRuntimeException;
    Festival findOne()throws ServiceRuntimeException;
    Page<Festival> findAll(int pageNumber)throws ServiceRuntimeException;
    void del(String code)throws ServiceRuntimeException;
    void del(Long id)throws ServiceRuntimeException;
    void update(Festival festival)throws ServiceRuntimeException;
}
